<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <link href="<?php echo base_url(); ?>css/bootstrap.min.css" rel="stylesheet" media="screen"/>
        <link href="<?php echo base_url(); ?>css/jquery.fancybox.css" rel="stylesheet" media="screen"/>
        <link href="<?php echo base_url(); ?>css/style.css" rel="stylesheet" media="screen"/>
        <link href="<?php echo base_url(); ?>css/jquery.countdown.css" rel="stylesheet" media="screen"/>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.8.3.min.js"></script>
        <title>Ujian Online</title>
    </head>
    <body>
        <?php if($this->session->userdata('type') == 'admin'){ ?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="#" class="brand">Ujian Online</a>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>admin"><i class="icon-home icon-white"></i>Home</a></li>
                        </ul>
                        <ul class="nav">
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-user icon-white"></i>
                                    Users
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('admin/guru','Guru'); ?>
                                        <?php echo anchor('admin/siswa','Siswa'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="#">Setting</a>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>admin/admin/nilai"><i class="icon-book icon-white"></i>Nilai</a></li>
                        </ul>
                </div>
            </div>
        </div>
        <?php }else if($this->session->userdata('type') == 'guru'){?>
<div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="#" class="brand">Ujian Online</a>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>guru"><i class="icon-home icon-white"></i>Home</a></li>
                        </ul>
                        <ul class="nav">
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-user icon-white"></i>
                                    Soal
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('guru/lihatsoal','Lihat Soal'); ?>
                                        <?php echo anchor('guru/buatsoal','Buat Soal'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>guru/nilai"><i class="icon-book icon-white"></i>Nilai</a></li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="#">Setting</a>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                </div>
            </div>
        </div>
        <?php }else if($this->session->userdata('type') == 'siswa'){?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="#" class="brand">Ujian Online</a>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>siswa"><i class="icon-home icon-white"></i>Home</a></li>
                            <li><a href="<?php echo site_url(); ?>siswa/test"><i class="icon-edit icon-white"></i>Test</a></li>
                            <li><a href="<?php echo site_url(); ?>siswa/nilai"><i class="icon-book icon-white"></i>Nilai</a></li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="#">Setting</a>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                </div>
            </div>
        </div>
        <?php } ?>